* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.circular-menu-container {
    position: relative;
    // width: 200px;
    // height: 200px;
}

.center-button {
    position: absolute;
    width: 50px;
    height: 50px;
    // background: #ffffff;
    background-color: wheat;
    border-radius: 50%;
    left: -30px;
    /* 完全隐藏在左侧 */
    top: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: left 0.5s ease-in-out, transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* 添加 opacity 过渡 */
    z-index: 100;
    opacity: 1;
    /* 确保初始不透明度为 1 */
}

.center-button:hover,
.center-button.expanded {
    left: 10px;
    /* 鼠标悬停或通过 JavaScript 切换状态时的位置 */
    transform: rotate(45deg);
}

.default-icon {
    font-size: 24px;
    color: #333;
}

.menu-item {
    // display: block !important;     // 默认显示      且确保不会被其他样式覆盖
    position: absolute;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 99;
    align-items: center;
}

.item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: red;

    &:hover {
        transform: scale(1.1);
    }
}

/* 定义进入和离开的动画 */
.circular-item-enter-active,
.circular-item-leave-active {
    transition: opacity 0.6s, transform 0.6s;
}

.circular-item-enter-from,
.circular-item-leave-to {
    opacity: 0;
    transform: translateY(20px);
    /* 从下往上移动 */
}

.item-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    overflow: hidden;

    .icon-image {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
}

.item-label {
    margin-top: 8px;
    white-space: nowrap;
    font-size: 12px;
    color: #666;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 过渡动画 */
.circular-item-enter-active,
.circular-item-leave-active {
    transition: all 0.3s ease;
}

.circular-item-enter-from,
.circular-item-leave-to {
    opacity: 0;
    transform: translate(0, 0) !important;
}

.active .item-icon {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}